#ifndef PUBLICATION_H_
#define PUBLICATION_H_
#include <iostream>
#include <string>
class Publication {
private:
  std::string title;
  std::string name;
  double price;
  long int date; // timestamp
public:
  Publication(const std::string &title, const std::string &name, double price,
              long int date)
      : title(title), name(name), price(price), date(date) {}
  ~Publication() {}
  std::string getTitle() { return title; }
  std::string getName() { return name; }
  double getPrice() { return price; }
  long int getdate() { return date; }
  void inputData() {
    std::cout << "input title, name, price, date:";
    std::cin >> title >> name >> price >> date;
  }
  void display() {
    std::cout << "title: " << title << ", "
              << "name: " << name << ", "
              << "price: " << price << ", "
              << "date: " << date << std::endl;
  }
};
#endif